#!/bin/bash

cp yiyuan.csv yiyuan/yiyuan.csv
cp xianxue.csv xianxue/xianxue.csv
cp redcross.csv redcross/redcross.csv
echo "OK 1"

cd xianxue
./tran.sh
cd ..
echo "OK 2"

cd redcross
./tran.sh
cd ..
echo "OK 3"

cd bsg_xianxue
./merge.sh
cd ..
echo "OK 4"

cd merge_xianxue
./merge.sh
cd ..
echo "OK 5"

cd yiyuan
./tran.sh
cd ..
echo "ok 6"

cp merge_xianxue/dizhen-xianxue.json . 
cp redcross/redcross.json ./dizhen-redcross.json
cp yiyuan/dizhen-yiyuan.json ./dizhen-yiyuan.v01.json
echo "Done!"
